﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Loading.aspx.cs" Inherits="WMS6.Web.Outbound.Loading" %>

<%@ Register Src="../UserControls/Pager.ascx" TagName="Pager" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Loading</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />

    <script src="../Js/jquery.js" type="text/javascript"></script>

    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>

    <script src="../Js/jquery.blockUI.js" type="text/javascript"></script>

    <script src="../Js/util.js" type="text/javascript"></script>

    <script src="../Js/InitPage.js" type="text/javascript"></script>

    <script src="../Js/Verification.js" type="text/javascript"></script>

    <script src="../Js/checkbox.js" type="text/javascript"></script>

    <script src="../Js/calendar.js" type="text/javascript" charset="gb2312"></script>

    <script type="text/javascript">
    
        //初始化页面
        window.onload = function(){
            initEditNewPage();
        }
        
        function newLoad()
        {
            var from = document.getElementById("hdnFrom").value;
            window.location.href = "Loading.aspx?from=" + from;
            return false;
        }
        
        function confirmMsg(code)
        {
            if(code == "C001")
            {
                if(confirm('<%=GetGlobalMsgResource("C001") %>'))
                {
                    return true;
                }
                else
                {
                    return false;
                }
            }
        }
        
        //弹出窗口选择承运商
        function selectCarrierID()
        {
            var rtnValue = popModalWindow('../Configuration/CarrierQuery.aspx?action=txtCarrierID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtCarrierID").focus();
                document.getElementById("txtCarrierID").value = rtnValue;
                __doPostBack("txtCarrierID_TextChanged","");
            }
        }
        
        //弹出窗口选择车辆
        function selectTransportEquipment()
        {
            var rtnValue = popModalWindow('../Configuration/TransportEquipmentQuery.aspx?action=txtVehicleNumber','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtVehicleNumber").focus();
                document.getElementById("txtVehicleNumber").value = rtnValue;
            }
        }
        
         function showAction()
		{	
			var pos = getElementPos("btnAction");	
			document.getElementById("actionDiv").style.top = pos.y+17;
			document.getElementById("actionDiv").style.left = pos.x;  			
			document.getElementById("hiddenFlag").value = '1';
		}
		  function hiddenDiv()
		  {
			var flag = document.getElementById("hiddenFlag").value
			if(flag == "1")
			{
				document.getElementById("actionDiv").style.display = "block";
				document.getElementById("hiddenFlag").value = '0';
			}
			else 
			{
				document.getElementById("actionDiv").style.display = "none";
			}
		  }
		  //锁屏
		function blockScreen()
		{
		    //锁屏
		    $.blockUI.defaults.message = GetBlockUIMsg();
            $.blockUI.defaults.overlayCSS.backgroundColor = GetBlockUIBgColor();
            $.blockUI();
		}
		
		//显示 报表 DIV
		function showReport()
		{	
			var pos = getElementPos("htmlbtnReport");	
			document.getElementById("reportDiv").style.top = pos.y+17;
			document.getElementById("reportDiv").style.left = pos.x;  			
			document.getElementById("hiddenReportFlag").value = '1';
		}
		
		//隐藏 报表 DIV
		function hiddenReportDiv()
		{
			var flag = document.getElementById("hiddenReportFlag").value
			if(flag == "1")
			{
				document.getElementById("reportDiv").style.display = "block";
				document.getElementById("hiddenReportFlag").value = '0';
			}
			else 
			{
				document.getElementById("reportDiv").style.display = "none";
			}
		}
		
		//弹出窗口选择出库单
        function selectOrder()
        {
            var rtnValue = popModalWindow('../Outbound/ShippingOrderQuery.aspx?action=hdnOrderID&OrderStatus=New,PartPre-Allocated,Pre-Allocated,PartAllocated,Allocated,Released,PartPicked,Picked,InLoading,PartShipped','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                rtnValue = rtnValue.split(',');
                document.getElementById("hdnOrderID").value = rtnValue[0];
            }
		}
		
		//弹出窗口选择设备类型
        function selectEquipmentType()
        {
            var rtnValue = popModalWindow('../Configuration/EquipmentTypeQuery.aspx?action=txtVehicleType','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtVehicleType").focus();
                document.getElementById("txtVehicleType").value = rtnValue;
            }
        }
        
        //弹出 打印 入库验收单 的窗口
        function popPrintLoading()
        {
            var loadID = document.getElementById("txtLoadID").value;
            var carrierID= document.getElementById("txtCarrierID").value;
            window.open('../Common/PrintReport.aspx?rtype=printloading&LoadID=' + escape(loadID)+'&CarrierID='+escape(carrierID), 'PrintWindow', 'width=860,height=610,top=50,left=50,toolbar=no,menubar=no,scrollbars=yes, resizable=yes,location=no,status=no');
        }
    </script>

</head>
<body>
    <form id="F7056" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_top">
            <table>
                <tr>
                    <td valign="bottom">
                        <asp:Label ID="lblLoad" runat="server" CssClass="label_header" Text="装车" meta:resourcekey="lblLoad"></asp:Label>
                    </td>
                    <td>
                        <asp:Button ID="btnGoBack" runat="server" CssClass="button" Enabled="true" Text="<%$ Resources:ButtonResource,btnGoBack %>"
                            CausesValidation="False" OnClick="btnGoBack_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" CssClass="button" Enabled="true" Text="<%$ Resources:ButtonResource,btnNew %>"
                            AccessKey="n" OnClientClick="newLoad();return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnSave" runat="server" CssClass="button" Enabled="true" Text="<%$ Resources:ButtonResource,btnSave %>"
                            AccessKey="s" OnClick="btnSave_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnDelete" runat="server" CssClass="button" Enabled="true" Text="<%$ Resources:ButtonResource,btnDelete %>"
                            AccessKey="d" OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;"
                            OnClick="btnDelete_Click" />
                    </td>
                    <td>
                        <input id="btnAction" type="button" runat="server" value="<%$Resources:ButtonResource,btnAction%>"
                            class="button" onclick="showAction();" />
                    </td>
                    <td>
                        <input id="htmlbtnReport" type="button" runat="server" value="<%$Resources:ButtonResource,btnReport%>"
                            class="button" onclick="showReport();" />
                    </td>
                </tr>
            </table>
        </div>
        <div>
            <asp:Label ID="lblMsg" runat="server" CssClass="label_message" meta:resourcekey="lblMsg"></asp:Label>
        </div>
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL" id="divL1">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur" onclick="setTab('one',1,5)"
                id="divM1">
                <asp:Label ID="one1" CssClass="hover" runat="server" meta:resourcekey="one1">常规</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR" id="divR1">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL2">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',2,5);"
                id="divM2">
                <asp:Label ID="one2" CssClass="navigationlabel" runat="server" meta:resourcekey="one2">承运商</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR2">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL3">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',3,5);"
                id="divM3">
                <asp:Label ID="one3" CssClass="navigationlabel" runat="server" meta:resourcekey="one3">其他</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR3">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL4">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',4,5);"
                id="divM4">
                <asp:Label ID="one4" CssClass="navigationlabel" runat="server" meta:resourcekey="one4">订单明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR4">
                </div>
            </div>
            <div style="float: left; width: 8px;">
                <div class="tabL_1" id="divL5">
                </div>
            </div>
            <div style="float: left;" class="tabLabelCont tabCur_1" onclick="setTab('one',5,5);"
                id="divM5">
                <asp:Label ID="one5" CssClass="navigationlabel" runat="server" meta:resourcekey="one5">拣货明细</asp:Label></div>
            <div style="float: left; margin-right: 2px;">
                <div class="tabR_1" id="divR5">
                </div>
            </div>
        </div>
        <div id="div_content">
            <div id="con_one_1" style="display: block;">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblLoadID" CssClass="label" runat="server" Text="装车单号" meta:resourcekey="lblLoadID"></asp:Label><font
                                class="must_input">*</font>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblStatus" CssClass="label" runat="server" Text="状态" meta:resourcekey="lblStatus"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblExternalID" CssClass="label" runat="server" Text="外部装车单号" meta:resourcekey="lblExternalID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblDepartureTime" CssClass="label" runat="server" Text="发车日期" meta:resourcekey="lblDepartureTime"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtLoadID" runat="server" CssClass="textbox" MaxLength="20"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" Enabled="False"
                                meta:resourcekey="ddlStatus">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtExternalID" runat="server" CssClass="textbox" MaxLength="30"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtDepartureTime" runat="server" CssClass="textbox"></asp:TextBox><img
                                src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtDepartureTime)" />
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblCarrierID" runat="server" CssClass="label" Text="承运商代码" meta:resourcekey="lblCarrierID"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVehicleType" runat="server" CssClass="label" Text="车辆类型" meta:resourcekey="lblVehicleType"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblVehicleNumber" runat="server" CssClass="label" Text="车牌号" meta:resourcekey="lblVehicleNumber"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblBeginLoadTime" runat="server" CssClass="label" Text="开始装车日期" meta:resourcekey="lblBeginLoadTime"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtCarrierID" runat="server" CssClass="textbox" OnTextChanged="txtCarrierID_TextChanged"
                                AutoPostBack="True"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item"
                                    class="img" runat="server" id="imgCarrierID" onclick="selectCarrierID();" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVehicleType" MaxLength="30" runat="server" CssClass="textbox"></asp:TextBox><img
                                src="../Images/icon_find.gif" alt="select one item" class="img" runat="server"
                                id="img3" onclick="selectEquipmentType();" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtVehicleNumber" MaxLength="30" runat="server" CssClass="textbox"></asp:TextBox><img
                                src="../Images/icon_find.gif" alt="select one item" class="img" runat="server"
                                id="img2" onclick="selectTransportEquipment();" />
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtBeginLoadTime" runat="server" CssClass="textbox"></asp:TextBox><img
                                src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtBeginLoadTime)" />
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblDriverName" runat="server" CssClass="label" Text="司机" meta:resourcekey="lblDriverName"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblLoadBy" runat="server" CssClass="label" Text="装车人" meta:resourcekey="lblLoadBy"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lbl" runat="server" CssClass="label" Text="跟车员" Visible="false" meta:resourcekey="lbl"></asp:Label>
                            <asp:Label ID="lblLoadSequence" runat="server" CssClass="label" Text="装车顺序" meta:resourcekey="lblLoadSequence"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblEndLoadTime" runat="server" CssClass="label" Text="结束装车日期" meta:resourcekey="lblEndLoadTime"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtDriverName" runat="server" CssClass="textbox" meta:resourcekey="txtDriverName"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtLoadBy" runat="server" CssClass="textbox"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txt" runat="server" CssClass="textbox" Visible="false" ></asp:TextBox>
                            <asp:DropDownList ID="ddlLoadSequence" runat="server" CssClass="mediumselectbox">
                            </asp:DropDownList>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtEndLoadTime" runat="server" CssClass="textbox" meta:resourcekey="txtEndLoadTime"></asp:TextBox><img
                                src="../Images/calendar.gif" class="img" alt="请选择日期" onclick="setday(this,txtEndLoadTime)" />
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblRoute" runat="server" CssClass="label" Text="路线" meta:resourcekey="lblRoute"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblDoor" runat="server" CssClass="label" Text="门" meta:resourcekey="lblDoor"></asp:Label>
                        </td>
                        <td width="180px">
                            
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtRoute" runat="server" CssClass="textbox" meta:resourcekey="txtRoute"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtDoor" runat="server" CssClass="textbox" meta:resourcekey="txtDoor"></asp:TextBox>
                        </td>
                        <td width="180px">
                            
                        </td>
                        <td width="180px">
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblTotalCount" runat="server" CssClass="label" Text="订单数" meta:resourcekey="lblTotalCount"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblTotalCube" runat="server" CssClass="label" Text="总体积" meta:resourcekey="lblTotalCube"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblTotalWeight" runat="server" CssClass="label" Text="总重量" meta:resourcekey="lblTotalWeight"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblTotalUnits" runat="server" CssClass="label" Text="总件数" meta:resourcekey="lblTotalUnits"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtTotalCount" runat="server" CssClass="textbox" Enabled="False"
                                meta:resourcekey="txtTotalCount"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtTotalCube" runat="server" CssClass="textbox" Enabled="False"
                                meta:resourcekey="txtTotalCube"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtTotalWeight" runat="server" CssClass="textbox" Enabled="False"
                                meta:resourcekey="txtTotalWeight"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtTotalUnits" runat="server" CssClass="textbox" Enabled="False"
                                meta:resourcekey="txtTotalUnits"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_2" style="display: none">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblCarrierID2" runat="server" CssClass="label" Text="承运商代码" meta:resourcekey="lblCarrierID"></asp:Label>
                        </td>
                        <td width="180px" colspan="2">
                            <asp:Label ID="lblCarrierName" runat="server" CssClass="label" Text="承运商名称" meta:resourcekey="lblCarrierName"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCarrierRef" runat="server" CssClass="label" Text="承运商参考信息" meta:resourcekey="lblCarrierRef"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtCarrierID2" runat="server" CssClass="textbox" Enabled="False"></asp:TextBox>
                        </td>
                        <td width="360px" colspan="2">
                            <asp:TextBox ID="txtCarrierName" runat="server" CssClass="largetextbox" meta:resourcekey="txtCarrierName"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCarrierRef" runat="server" CssClass="textbox" meta:resourcekey="txtCarrierRef"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblCarrierCity" runat="server" CssClass="label" Text="城市" meta:resourcekey="lblCarrierCity"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCarrierProv" runat="server" CssClass="label" Text="省份" meta:resourcekey="lblCarrierProv"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCarrierZIP" runat="server" CssClass="label" Text="邮编" meta:resourcekey="lblCarrierZIP"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCarrierCountry" runat="server" CssClass="label" Text="国家" meta:resourcekey="lblCarrierCountry"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtCarrierCity" runat="server" CssClass="textbox" meta:resourcekey="txtCarrierCity"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtCarrierProv" runat="server" CssClass="textbox" meta:resourcekey="txtCarrierProv"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtCarrierZIP" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsPost(this,'lblMsg')"
                                meta:resourcekey="txtCarrierZIP"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtCarrierCountry" runat="server" CssClass="textbox" meta:resourcekey="txtCarrierCountry"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px" colspan="2">
                            <asp:Label ID="lblCarrierAddress" runat="server" CssClass="label" Text="地址" meta:resourcekey="lblCarrierAddress"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCarrierPhone" runat="server" CssClass="label" Text="电话" meta:resourcekey="lblCarrierPhone"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCarrierContact" runat="server" CssClass="label" Text="联系人" meta:resourcekey="lblCarrierContact"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px" colspan="2" rowspan="3">
                            <asp:TextBox ID="txtCarrierAddress" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                meta:resourcekey="txtCarrierAddress"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtCarrierPhone" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsPhone(this,'lblMsg')"
                                meta:resourcekey="txtCarrierPhone"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtCarrierContact" runat="server" CssClass="textbox" meta:resourcekey="txtCarrierContact"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblCarrierFax" runat="server" CssClass="label" Text="传真" meta:resourcekey="lblCarrierFax"></asp:Label>
                        </td>
                        <td>
                            <asp:Label ID="lblCarrierMail" runat="server" CssClass="label" Text="Email" meta:resourcekey="lblCarrierMail"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:TextBox ID="txtCarrierFax" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsFax(this,'lblMsg')"
                                meta:resourcekey="txtCarrierFax"></asp:TextBox>
                        </td>
                        <td>
                            <asp:TextBox ID="txtCarrierMail" runat="server" CssClass="textbox" onblur="Javascript:dataVer._IsMail(this,'lblMsg')"
                                meta:resourcekey="txtCarrierMail"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_3" style="display: none">
                <table width="720px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf1" runat="server" CssClass="label" Text="自定义字段01" meta:resourcekey="lblUdf1"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf6" runat="server" CssClass="label" Text="自定义字段06" meta:resourcekey="lblUdf6"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCreatedBy" runat="server" CssClass="label" Text="制单人" meta:resourcekey="lblCreatedBy"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblCreatedDate" runat="server" CssClass="label" Text="制单日期" meta:resourcekey="lblCreatedDate"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf1" runat="server" CssClass="textbox" meta:resourcekey="txtUdf1"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf6" runat="server" CssClass="textbox" meta:resourcekey="txtUdf6"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtCreatedBy" runat="server" Enabled="False" CssClass="textbox"
                                meta:resourcekey="txtCreatedBy"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtCreatedDate" runat="server" Enabled="False" CssClass="textbox"
                                meta:resourcekey="txtCreatedDate"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf2" runat="server" CssClass="label" Text="自定义字段02" meta:resourcekey="lblUdf2"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf7" runat="server" CssClass="label" Text="自定义字段07" meta:resourcekey="lblUdf7"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUpdatedBy" runat="server" CssClass="label" Text="更新人" meta:resourcekey="lblUpdatedBy"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUpdatedDate" runat="server" CssClass="label" Text="更新日期" meta:resourcekey="lblUpdatedDate"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf2" runat="server" CssClass="textbox" meta:resourcekey="txtUdf2"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf7" runat="server" CssClass="textbox" meta:resourcekey="txtUdf7"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUpdatedBy" runat="server" Enabled="False" CssClass="textbox"
                                meta:resourcekey="txtUpdatedBy"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUpdatedDate" runat="server" Enabled="False" CssClass="textbox"
                                meta:resourcekey="txtUpdatedDate"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf3" runat="server" CssClass="label" Text="自定义字段03" meta:resourcekey="lblUdf3"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf8" runat="server" CssClass="label" Text="自定义字段08" meta:resourcekey="lblUdf8"></asp:Label>
                        </td>
                        <td width="360px" colspan="2">
                            <asp:Label ID="lblRemark" runat="server" CssClass="label" Text="备注" meta:resourcekey="lblRemark"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf3" runat="server" CssClass="textbox" meta:resourcekey="txtUdf3"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf8" runat="server" CssClass="textbox" meta:resourcekey="txtUdf8"></asp:TextBox>
                        </td>
                        <td width="360px" colspan="2" rowspan="3">
                            <asp:TextBox ID="txtRemark" runat="server" CssClass="largetextarea" TextMode="MultiLine"
                                meta:resourcekey="txtRemark"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf04" runat="server" CssClass="label" Text="自定义字段04" meta:resourcekey="lblUdf04"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf09" runat="server" CssClass="label" Text="自定义字段09" meta:resourcekey="lblUdf09"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf4" runat="server" CssClass="textbox" meta:resourcekey="txtUdf4"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf9" runat="server" CssClass="textbox" meta:resourcekey="txtUdf9"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:Label ID="lblUdf5" runat="server" CssClass="label" Text="自定义字段05" meta:resourcekey="lblUdf5"></asp:Label>
                        </td>
                        <td width="180px">
                            <asp:Label ID="lblUdf10" runat="server" CssClass="label" Text="自定义字段10" meta:resourcekey="lblUdf10"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf5" runat="server" CssClass="textbox" meta:resourcekey="txtUdf5"></asp:TextBox>
                        </td>
                        <td width="180px">
                            <asp:TextBox ID="txtUdf10" runat="server" CssClass="textbox" meta:resourcekey="txtUdf10"></asp:TextBox>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td colspan="4">
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_4" style="display: none; overflow-x:auto; overflow-y:hidden;">
                <table width="700px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnAddDetail" runat="server" CssClass="button" Enabled="true" Text="<%$Resources:ButtonResource,btnAddDetail%>"
                                            OnClientClick="selectOrder();" OnClick="btnAddDetail_Click" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnDeleteDetail" runat="server" CssClass="button" Enabled="true"
                                            Text="<%$Resources:ButtonResource,btnDeleteDetail%>" OnClick="btnDeleteDetail_Click"
                                            OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div>
                                <asp:GridView ID="gvLoadDetail" runat="server" AutoGenerateColumns="False" AllowSorting="True"
                                    CssClass="gridview" OnRowDataBound="gvLoadDetail_RowDataBound" OnInit="gvLoadDetail_Init"
                                    OnSorting="gvLoadDetail_Sorting" DataKeyNames="OrderID,LineID,Status" Width="1250px">
                                    <FooterStyle CssClass="GridViewFooterStyle" />
                                    <RowStyle CssClass="GridViewRowStyle" />
                                    <HeaderStyle CssClass="GridViewHeaderStyle" />
                                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                    <Columns>
                                        <asp:BoundField HeaderText="序号" FooterText="序号" meta:resourcekey="No">
                                            <ItemStyle CssClass="GridViewRowWidth_40" />
                                        </asp:BoundField>
                                        <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                                            <HeaderTemplate>
                                                <img src="../Images/gvSettingpic.gif" id="img01" class="gvSettingImg" onclick="gvUserSetting('7056','gvLoadDetail');"
                                                    onmouseover="showGVUserSettingAlt(this);" alt="customize list" />
                                                <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvLoadDetail');"
                                                    meta:resourcekey="CheckBox1Resource1" />
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chbSelect" runat="server" meta:resourcekey="chbSelectResource1" />
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvLoadDetail');"
                                                    meta:resourcekey="CheckBox2Resource1" />
                                            </FooterTemplate>
                                            <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                            <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="LineID" HeaderText="行号" FooterText="行号" SortExpression="LineID"
                                            meta:resourcekey="LineID">
                                            <ItemStyle CssClass="GridViewRowWidth_50" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="OrderID" HeaderText="发货订单号" FooterText="发货订单号" SortExpression="OrderID"
                                            meta:resourcekey="OrderID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ExternalOrderID" HeaderText="外部订单号" FooterText="外部订单号"
                                            SortExpression="ExternalOrderID" meta:resourcekey="ExternalOrderID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Status" HeaderText="状态" FooterText="状态" SortExpression="Status"
                                            meta:resourcekey="Status">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ConsigneeID" HeaderText="客户代码" FooterText="客户代码" SortExpression="ConsigneeID"
                                            meta:resourcekey="ConsigneeID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="ConsigneeName" HeaderText="客户名称" FooterText="客户名称" SortExpression="ConsigneeName"
                                            meta:resourcekey="ConsigneeName">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Route" HeaderText="路线" FooterText="路线" SortExpression="Route"
                                            meta:resourcekey="Route">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:TemplateField FooterText="总件数" HeaderText="总件数" SortExpression="TotalUnits"
                                            meta:resourcekey="TotalUnits">
                                            <ItemTemplate>
                                                <asp:Label ID="lblTotalUnits" runat="server" Text='<%# GetPreferenceDigit(Eval("TotalUnits").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="总体积" HeaderText="总体积" SortExpression="TotalCube" meta:resourcekey="TotalCube">
                                            <ItemTemplate>
                                                <asp:Label ID="lblTotalCube" runat="server" Text='<%# GetPreferenceDigit(Eval("TotalCube").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="总重量" HeaderText="总重量" SortExpression="TotalWeight"
                                            meta:resourcekey="TotalWeight">
                                            <ItemTemplate>
                                                <asp:Label ID="lblTotalWeight" runat="server" Text='<%# GetPreferenceDigit(Eval("TotalWeight").ToString()) %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:TemplateField>
                                        <asp:TemplateField FooterText="备注" HeaderText="备注" SortExpression="Remark" meta:resourcekey="Remark">
                                            <ItemTemplate>
                                                <asp:Label ID="lblRemark" runat="server" Text='<%# Eval("Remark") %>'></asp:Label>
                                            </ItemTemplate>
                                            <ItemStyle CssClass="GridViewRowWidth_200" />
                                        </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                                <%--<div>
                                    <uc1:Pager ID="PagerFooter" runat="server" OnFirst="btnFirst_Click" OnPrevious="btnPrevious_Click"
                                        OnNext="btnNext_Click" OnLast="btnLast_Click" OnGoTo="GoTo_Click" />
                                </div>--%>
                            </div>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr style="height: 30px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
            <div id="con_one_5" style="display: none; overflow-x:auto; overflow-y:hidden;">
                <table width="700px" style="display: block; margin-left: 10px; margin-top: 10px;">
                    <tr>
                        <td>
                            <table>
                                <tr>
                                    <td>
                                        <asp:Button ID="btnAddPickDetail" runat="server" CssClass="button" Enabled="false"
                                            Text="<%$Resources:ButtonResource,btnAddDetail%>" OnClick="btnAddPickDetail_Click" />
                                    </td>
                                    <td>
                                        <asp:Button ID="btnDeletePickDetail" runat="server" CssClass="button" Enabled="false"
                                            Text="<%$Resources:ButtonResource,btnDeleteDetail%>" OnClick="btnDeletePickDetail_Click"
                                            OnClientClick="javascript:if(confirmMsg('C001')) return true; else return false;" />
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr style="height: 10px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <div>
                                <asp:GridView ID="gvLoadPickDetail" runat="server" AutoGenerateColumns="False" AllowSorting="false"
                                    CssClass="gridview" DataKeyNames="LineID,Status" OnRowDataBound="gvLoadPickDetail_RowDataBound" Width="1300px">
                                    <FooterStyle CssClass="GridViewFooterStyle" />
                                    <RowStyle CssClass="GridViewRowStyle" />
                                    <HeaderStyle CssClass="GridViewHeaderStyle" />
                                    <AlternatingRowStyle CssClass="GridViewAlternatingRowStyle" />
                                    <Columns>
                                        <asp:BoundField HeaderText="序号" FooterText="序号" >
                                            <ItemStyle CssClass="GridViewRowWidth_40" />
                                        </asp:BoundField>
                                        <asp:TemplateField>
                                            <HeaderTemplate>
                                                <asp:CheckBox ID="CheckBox1" runat="server" onclick="selectAll(this,'gvLoadPickDetail');"/>
                                            </HeaderTemplate>
                                            <ItemTemplate>
                                                <asp:CheckBox ID="chbSelect" runat="server" />
                                            </ItemTemplate>
                                            <FooterTemplate>
                                                <asp:CheckBox ID="CheckBox2" runat="server" onclick="selectAll(this,'gvLoadPickDetail');"/>
                                            </FooterTemplate>
                                            <HeaderStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                            <ItemStyle HorizontalAlign="Center" CssClass="GridViewRowWidth_50" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="LineID" HeaderText="行号" FooterText="行号" SortExpression="LineID">
                                            <ItemStyle CssClass="GridViewRowWidth_50" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="LoadID" HeaderText="装车单号" FooterText="装车单号" SortExpression="LoadID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="PickDetailID" HeaderText="拣货明细号" FooterText="PickDetailID"  SortExpression="PickDetailID" >
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Status" HeaderText="状态" FooterText="状态" SortExpression="Status">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="OwnerID" HeaderText="货主代码" FooterText="货主代码" SortExpression="OwnerID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="SkuID" HeaderText="货品代码" FooterText="货品代码" SortExpression="SkuID">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Lot" HeaderText="批次号" FooterText="批次号" SortExpression="Lot">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Loc" HeaderText="货位" FooterText="货位" SortExpression="Loc">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:BoundField DataField="Lpn" HeaderText="LPN" FooterText="LPN" SortExpression="Lpn">
                                            <ItemStyle CssClass="GridViewRowWidth_100" />
                                        </asp:BoundField>
                                        <asp:TemplateField FooterText="数量" HeaderText="数量" SortExpression="Qty" >
                                             <ItemTemplate>
                                                 <asp:Label ID="lblQty" runat="server" Text='<%# GetPreferenceDigit(Eval("Qty").ToString()) %>' ></asp:Label>
                                             </ItemTemplate>
                                             <ItemStyle CssClass="GridViewRowWidth_100" />
                                         </asp:TemplateField>
                                    </Columns>
                                </asp:GridView>
                            </div>
                        </td>
                        <td>
                        </td>
                    </tr>
                    <tr style="height: 30px;">
                        <td>
                        </td>
                        <td>
                        </td>
                    </tr>
                </table>
            </div>
        </div>
        <div id="actionDiv" style="background-color: #FFFFFF; position: absolute; display: none;
            border: none 0 black">
            <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu">
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnNewOrder" runat="server" visible="true">
                        <asp:LinkButton ID="lnkbtnNewOrder" runat="server" Text="新增订单" Width="105px" OnClientClick="blockScreen();"
                            OnClick="lnkbtnNewOrder_Click" meta:resourcekey="lnkbtnAudit"></asp:LinkButton>
                    </td>
                </tr>
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnNewLPN" runat="server" visible="true">
                        <asp:LinkButton ID="lnkbtnNewLPN" runat="server" Text="新增LPN" Width="105px" OnClientClick="blockScreen();"
                            OnClick="lnkbtnNewLPN_Click" meta:resourcekey="lnkbtnRevertAudit"></asp:LinkButton>
                    </td>
                </tr>
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnNewPick" runat="server" visible="true">
                        <asp:LinkButton ID="lnkbtnNewPick" runat="server" Text="新增拣货标签" Width="105px" OnClientClick="blockScreen();"
                            OnClick="lnkbtnNewPick_Click" meta:resourcekey="lnkbtnWrittenOff"></asp:LinkButton>
                    </td>
                </tr>
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnClose" runat="server" visible="true">
                        <asp:LinkButton ID="lnkbtnClose" runat="server" Text="关闭" Width="105px" OnClientClick="blockScreen();"
                            OnClick="lnkbtnClose_Click" meta:resourcekey="lnkbtnClose"></asp:LinkButton>
                    </td>
                </tr>
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnShipping" runat="server" visible="true">
                        <asp:LinkButton ID="lnkbtnShipping" runat="server" Text="发货" Width="105px" OnClientClick="blockScreen();"
                            OnClick="lnkbtnShipping_Click" meta:resourcekey="lnkbtnShipping"></asp:LinkButton>
                    </td>
                </tr>
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnServed" runat="server" visible="true">
                        <asp:LinkButton ID="lnkbtnServed" runat="server" Text="送达" Width="105px" OnClientClick="blockScreen();"
                            OnClick="lnkbtnServed_Click" meta:resourcekey="lnkbtnServed"></asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
        <div id="reportDiv" style="background-color: #FFFFFF; position: absolute; display: none;">
            <table width="105" border="0" cellspacing="0" cellpadding="0" id="divcontent_menu2">
                <tr class="bg2" onmouseover="this.className='bg1'" onmouseout="this.className='bg2'">
                    <td class="line" id="tdlnkbtnPrintLoading234" runat="server" visible="true">
                        <asp:LinkButton ID="lnkbtnPrintLoading" runat="server" Width="105px" Text="<%$Resources:ButtonResource,lnkbtnPrintLoading%>"
                            OnClientClick="popPrintLoading();"></asp:LinkButton>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <input id="hdnOrderID" runat="server" type="hidden" />
    <input id="hdnLoadID" runat="server" type="hidden" />
    <input type="hidden" id="hdnFrom" runat="server" />
    <input id="hdnFlag" runat="server" type="hidden" value="0" />
    <input type="hidden" id="hdnActionID" runat="server" />
    <input type="hidden" id="hdnDataFormat" runat="server" />
    <input type="hidden" id="hdncalendarFlag" runat="server" />
    <input type="hidden" id="hdnLineID" runat="server" />
    <input type="hidden" id="hdnLoadPickDetailLineID" runat="server" />
    <input type="hidden" id="hiddenFlag" />
    <input type="hidden" id="hiddenReportFlag" />
    </form>
</body>
</html>

<script language="javascript" type="text/javascript" event="onclick" for="document">
     	hiddenCalendarDiv();
		hiddenDiv();
		hiddenReportDiv();
</script>

